Nikola Tesla and the invention of alternating current